﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WorkShop.WorkShop
{
    public partial class RequsetResponeServerObjects : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                txtName.Text = "";
                txtPrice.Text = "";
                txtProductNumber.Text = "";
                txtQuantity.Text = "";
            }
        }

        protected void btnReset_Click(object sender, EventArgs e)
        {
            txtName.Text = "";
            txtPrice.Text = "";
            txtProductNumber.Text = "";
            txtQuantity.Text = "";
        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Response.Redirect("Bill.aspx?prodno= " + txtProductNumber.Text + "&name= " + txtName.Text + "&price= " + txtPrice.Text + "&quantity= " + txtQuantity.Text);
        }
    }
}